<?php

namespace app\api\controller;

use app\common\controller\Api;
use think\Request;

class Index extends Api
{
    public function index()
    {
        if($this->request->isPost()){
            return fh(200,'success','成功',["https://baosheng.langqiyun.cn"]);
        }
    }
    public function base64()
    {
    	$id = input('value');
    	$a = base64_decode($id);
        $a = explode('?',$a);
        $a = array_pop($a);
        $a = explode('&',$a);
        foreach($a as $v){
            $now = explode('=',$v);
            // if(!isset($now[0]) || !isset($now[1])) continue;
            $value[$now[0]] = $now[1] ?? '';
        }
        return fh(200,'success','解密成功',$value);
    }
}
